import request from '@/utils/request'

export default{
    //1.讲师列表
    getTeacherListPage(current,limit,teacherQuery){
        return request({
            url: `/eduservice/teacher/pageTeacherCondition/${current}/${limit}`,
            method: 'post',
            //条件的对象 RequestBody获取数据
            data: teacherQuery
          })
    },
    //删除讲师
     //1.讲师列表
     deleteTeacherId(id){
        return request({
            url: `/eduservice/teacher/${id}`,
            method: 'delete'
          })
    },
    //添加老师
    addTeacher(teacher){
        return request({
            url: `/eduservice/edu-teacher/add`,
            method: 'post',
            data: teacher
          })
    },
    getTeacherInfo(id){
        return request({
            url: `/eduservice/edu-teacher/getTeacher/${id}`,
            method: 'get',

          })
    },
    updateTeacherInfo(teacher){
        return request({
            url: `/eduservice/edu-teacher/updateTeacher`,
            method: 'post',
            data: teacher
          })
    }
}
